home *** CD-ROM | disk | FTP | other *** search
- Path: gate.net!news-adm
- From: kwaddell@gate.net (Karl Waddell)
- Newsgroups: comp.lang.c
- Subject: Help with Network Code in 'C'
- Date: 19 Jan 1996 04:20:50 GMT
- Organization: CyberGate, Inc.
- Message-ID: <4dn672$1of0@news.gate.net>
- NNTP-Posting-Host: dffl7-36.gate.net
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-Newsreader: WinVN 0.99.7
-
- I have written a client/server app on an HP-UX box using the O'Reilly IPC code
- as a template. The code works great while both parts, meaning the client and
- server code reside on the same box. When I moved the server code to another box
- in another subdomain, I recveive the "connection refused" message when trying
- to establish a connection. I have started xdb and debuged the sever code on the
- new box and it looks fine. I have not changed or recompiled the code on the new
- box,(I would not think I would have to recompile). The server code does a
- gethost, gethostbyname, builds the address of the server, binds, does the
- listen and wait for the accept. The client code calls gethostbyname using a
- string with the machine to connect to, creates the socket, build the address
- structure, and trys to connect. If while waiting in the debugger on the server
- side in an accept and I telnet over using the port number of my server I can
- see the code accept the connection, but it will not do the same for my client
- code. I can ping the site without any problem, it is on the same subnet. Has
- anyone run into this type of problem?
-
-
- Thanks in advance
-
-
- Karl Waddell
-
-